<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Element UI开始</title>
    <link href="https://cdn.bootcss.com/element-ui/2.1.0/theme-chalk/index.css" rel="stylesheet">
    <script src="https://cdn.bootcss.com/vue/2.5.13/vue.js"></script>
    <script src="https://cdn.bootcss.com/element-ui/2.1.0/index.js"></script>
</head>
<body>
    <div id="app">
        <el-button @click="visible = true">按钮</el-button>
        <el-dialog :visible.sync="visible" title="你好">
          <p>欢迎使用 Element</p>
        </el-dialog>
      </div>
</body>
<script>
    new Vue({
        el:"#app",
        data: function(){
            return {visible: false};
        }
    })
</script>
</html>